﻿using System;
using System.ComponentModel.DataAnnotations;
using Omu.Awesome.Mvc;

namespace Icms.WebUI.Dto
{
    public class CourtInput : Input
    {
        [Req]
        [UIHint("AjaxDropdown")]
        [Display(Name = "Tip")]
        public Guid? CourtTypeId { get; set; }

        [UIHint("AjaxDropdown")]
        [AjaxDropdown(Controller = "CourtAjaxDropdown", ParentId = "CourtType")]
        [Display(Name = "Instanta ierarhic superioara")]
        public Guid? ParentId { get; set; }

        [Display(Name = "Numar")]
        public string Number { get; set; }

        public string Idno { get; set; }

        [Req]
        [Display(Name = "Titlu")]
        public string Title { get; set; }

        [UIHint("AjaxDropdown")]
        [AwesomeParameters("{code:'Region'}")]
        [AjaxDropdown(Controller = "ParameterByCodeAjaxDropdown")]
        [Display(Name = "Raion")]
        public Guid? RegionId { get; set; }// parameter code = region

        [Display(Name = "Localitate")]
        public string Location { get; set; }

        [Display(Name = "Strada")]
        public string Street { get; set; }

        [Display(Name = "Casa")]
        public string Home { get; set; }

        [Display(Name = "Apartament")]
        public string Apartment { get; set; }

        [Display(Name = "Telefon")]
        public string Phone { get; set; }

        public string Fax { get; set; }
        
        public string Email { get; set; }
    }
}